import request from '@/utils/request'

// 查询平台更新列表
export function listPlatform(query) {
  return request({
    url: '/platform/platform/list',
    method: 'get',
    params: query
  })
}

// 查询平台更新详细
export function getPlatform(platformId) {
  return request({
    url: '/platform/platform/' + platformId,
    method: 'get'
  })
}

// 新增平台更新
export function addPlatform(data) {
  return request({
    url: '/platform/platform',
    method: 'post',
    data: data
  })
}

// 修改平台更新
export function updatePlatform(data) {
  return request({
    url: '/platform/platform',
    method: 'put',
    data: data
  })
}

// 删除平台更新
export function delPlatform(platformId) {
  return request({
    url: '/platform/platform/' + platformId,
    method: 'delete'
  })
}
